home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / fried_ic.swf / scripts / DefineSprite_399 / frame_2 / DoAction.as
Encoding:
Text File  |  2008-11-12  |  459 b   |  26 lines

  1. stop();
  2. stove._visible = false;
  3. spoon._visible = false;
  4. oil._visible = false;
  5. crumbCup01._visible = false;
  6. var i = 0;
  7. while(i <= 3)
  8. {
  9.    eval("mc" + i).onPress = function()
  10.    {
  11.       this.swapDepths(depths);
  12.       Mouse.hide();
  13.       this.startDrag();
  14.    };
  15.    eval("mc" + i).onRelease = function()
  16.    {
  17.       if(!finalHit.hitTest(this))
  18.       {
  19.          stopDrag();
  20.          Mouse.show();
  21.          depths++;
  22.       }
  23.    };
  24.    i++;
  25. }
  26.